<?php
class communities extends db_table {
	/**
	 * Community ID
	 *
	 * @var db_field
	 */
	public $community_id;
	/**
	 * Group or user ID
	 *
	 * @var db_field
	 */
	public $user_id;
	/**
	 * Member or friend ID
	 *
	 * @var db_field
	 */
	public $friend_id;
	/**
	 * Join date
	 *
	 * @var db_field
	 */
	public $join_date;
	/**
	 * Community membership status
	 *
	 * @var db_field
	 */
	public $community_status;

	/**
	 * Constructor
	 *
	 * @param mixed $id
	 */
	public function __construct($id = null) {
		parent::__construct($id);
	}
	
	public static function status_request() {
		return "request";
	}
	
	public static function status_valid() {
		return "valid";
	}
}
?>